<?php
/**
 * Created by novebeta.
 * Date: 10/19/12
 * Time: 5:01 PM
 */
return CMap::mergeArray(
    require(dirname(__FILE__) . '/main.php'),
    array(
        'sourceLanguage' => 'id',
        'language' => 'en',
        'components' => array(
            'urlManager' => array(
                'class'=>'application.components.UrlManager',
                'urlFormat'=>'path',
                'showScriptName'=>false,
                'rules' => array(
                    '<language:(id|en)>/page/<slug:[a-zA-Z0-9-]+>'=>'page/view',
                    '<language:(id|en)>/' => 'site/index',
                    '<language:(id|en)>/<action:(contact|login|logout)>/*' => 'site/<action>',
                    '<language:(id|en)>/<controller:\w+>/<id:\d+>'=>'<controller>/view',
                    '<language:(id|en)>/<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
                    '<language:(id|en)>/<controller:\w+>/<action:\w+>/*'=>'<controller>/<action>',
                ),
            ),
        ),
        'params' => array(
            'languages' => array('id' => 'Indonesia', 'en' => 'English'),
        ),
    )
);